/*
Library for DFRobot Flame Sensor
Product Code : RB-Dfr-65
Author: Jeff Szcinski II (jeffski)
*/
#ifndef FlameSensor_h
#define FlameSensor_h

#include "Arduino.h"

class FlameSensor
{
  public:
    FlameSensor(int analogInPin);
	bool isFlame();
	int getFlameDetectionAvg(int readsNum);
	void setDebugOn();
	void setDebugOff();
  private:
	int sensorPin;
	int sensorValue;
	bool debug;
	int flameThreshold;
};

#endif